<template>
  <el-collapse v-model="activeNames">
    <el-collapse-item name="1">
      <template slot="title">
        <div>
          <div class="titlefirst">
            <i class="title_bar"></i>
            <span class="title_name">基本信息</span>
            <span class="infotips">
            <i class="el-icon-warning" style="color: #3396F9"></i>蓝色输入框为必填项，下同。
          </span>
          </div>

        </div>

      </template>

      <pcic-form
        ref="d2Crud"
        @validate="$emit('validate', $event)"
        class="whitebox"
        v-bind="_crudProps"
        v-on="_crudListeners"/>


    </el-collapse-item>
  </el-collapse>

</template>
<script>
import { crudOptions } from './crud.js'
import { d2CrudPlus } from 'd2-crud-plus'

export default {
  name: 'basic-info',
  mixins: [d2CrudPlus.crud],

  data () {
    return {
      lock: false,
      form:{
        f1: ''
      },
      activeNames: ['1'],
      rules:{
        f1:[
          { required: true, message: '请输入', trigger: 'blur' },
        ]
      }
    }
  },
  methods:{
    doLoad(){

    },
    async doValidate(){
      return await this.$refs.d2Crud.doValidate()
    },
    getCrudOptions () {
      return crudOptions
    },
  }
}
</script>

<style lang="scss">

</style>
